package com.fairplay.test.activity;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.fairplay.test.fragment.MainFragment;
import com.fairplay.test.fragment.MenuFragment;
import com.gwm.annotation.fixpatch.FixPatchClass;
import com.gwm.annotation.layout.Layout;
import com.gwm.annotation.router.ARouter;
import com.jetpackframework.R2;
import com.jetpackframework.basemd.BaseDrawerLayoutActivity;
import com.jetpackframework.basemd.BaseNavDrawerLayoutActivity;
import com.jetpackframework.basemd.BaseNavFragment;

@ARouter("test/drawer")
@FixPatchClass( version = 12)
public class DrawerLayoutActivity extends BaseNavDrawerLayoutActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        arouterActivity("test://${packageName}/test/tabview");
    }

    @Override
    protected Fragment getMenuFragment() {
        return new MenuFragment();
    }

    @Override
    protected BaseNavFragment getNavFragment() {
        return new MainFragment();
    }
}
